<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">

<body>
Time:  ${time}
<br />
<fmt:formatDate value="${time}" type="both"
                pattern="yyyy年MM月dd日 HH时mm分ss秒SSS毫秒" var="dateStr" />
<h3>自定义格式${dateStr}</h3>
<br>
Message: ${message}
</body>

<h1>${username}</h1>

<h1>c:if</h1>
<c:if test="${salary>=5000}">
    ok
</c:if>
<c:if test="${salary<5000}">
    not ok
</c:if>

<h1>c:when</h1>
<c:choose>
    <c:when test="${salary>=5000}">ok</c:when>
    <c:otherwise>not ok</c:otherwise>
</c:choose>

<h1>c:forEach</h1>
<table border="1">
<c:forEach var="brand" items="${brands}" varStatus="status">
    <tr>
        <td>${status.count}</td>
        <td>${brand}</td>
    </tr>
</c:forEach>
</table>
</html>